<html>
    <body>
<?php
$_SESSION['logado'] = false;
$_SESSION['id_usuario'] = null;
session_destroy();
echo "<script type='text/javascript'>
     document.location.href='\index.php'
     </script> ";
?>
    
        </body>

</html>